import request from '@/utils/request'

export const workOrderList = (params) => request({
  url: '/task-service/task/search',
  method: 'GET',
  params
})

// export const supplyAlertValue = () => request({
//   url: '/task-service/task/supplyAlertValue',
//   method: 'GET'

// })

export const workOrderDetail = (id) => request({
  url: '/task-service/task/taskInfo/' + id,
  method: 'GET'
})

export const lackWorkOrder = (id) => request({
  url: '/task-service/taskDetails/' + id,
  method: 'GET'
})

export const workOrderType = (params) => request({
  url: '/task-service/taskType/list?' + params,
  method: 'GET'
})

export const cancelWorkOrder = (id) => request({
  url: '/task-service/task/cancel/' + id,
  method: 'POST'
})

export const cancelList = (id) => request({
  url: '/vm-service/channel/channelList/' + id,
  method: 'GET'
})
export const getOperatorList = (id) => request({
  url: '/user-service/user/operatorList/' + id,
  method: 'GET'
})

// 取消工单
